package controllers

import (
	"github.com/astaxie/beego"
)

type CommonController struct {
	beego.Controller
}

func (this *CommonController) RetData(resp map[string]interface{}) {
	resp["version"] = 1.01
	this.Data["json"] = resp
	this.ServeJSON()
}
